window.onload = function(){
    let del = document.querySelectorAll('.delete');
    for(var i =0;i<del.length;i++){
    del[i].onclick=function(){
       let flag = confirm('确认要删除吗');
       return flag;
    }
}
}